← Back
Editing: index-legacy34.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function u(e,o,i,a){var u=o&&o.prototype instanceof l?o:l,s=Object.create(u.prototype);return r(s,"_invoke",function(e,r,o){var i,a,u,l=0,s=o||[],f=!1,m={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(n,e){return i=n,a=0,u=t,m.n=e,c}};function p(e,r){for(a=e,u=r,n=0;!f&&l&&!o&&n<s.length;n++){var o,i=s[n],p=m.p,v=i[2];e>3?(o=v===r)&&(u=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=t):i[0]<=p&&((o=e<2&&p<i[1])?(a=0,m.v=r,m.n=i[1]):p<v&&(o=e<3||i[0]>r||r>v)&&(i[4]=e,i[5]=r,m.n=v,a=0))}if(o||e>1)return c;throw f=!0,r}return function(o,s,v){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&p(s,v),a=s,u=v;(n=a<2?t:u)||!f;){i||(a?a<3?(a>1&&(m.n=-1),p(a,u)):m.n=u:m.v=u);try{if(l=2,i){if(a||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,a<2&&(a=0)}else 1===a&&(n=i.return)&&n.call(i),a<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=t}else if((n=(f=m.n<0)?u:e.call(r,m))!==c)break}catch(n){i=t,a=1,u=n}finally{l=1}}return{value:n,done:f}}}(e,i,a),!0),s}var c={};function l(){}function s(){}function f(){}n=Object.getPrototypeOf;var m=[][i]?n(n([][i]())):(r(n={},i,function(){return this}),n),p=f.prototype=l.prototype=Object.create(m);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,r(t,a,"GeneratorFunction")),t.prototype=Object.create(p),t}return s.prototype=f,r(p,"constructor",f),r(f,"constructor",s),s.displayName="GeneratorFunction",r(f,a,"GeneratorFunction"),r(p),r(p,a,"Generator"),r(p,i,function(){return this}),r(p,"toString",function(){return"[object Generator]"}),(e=function(){return{w:u,m:v}})()}function r(t,n,e,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}r=function(t,n,e,o){function a(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?i?i(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(a("next",0),a("throw",1),a("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?n(c):Promise.resolve(c).then(r,o)}function i(t){return function(){var n=this,e=arguments;return new Promise(function(r,i){var a=t.apply(n,e);function u(t){o(a,r,i,u,c,"next",t)}function c(t){o(a,r,i,u,c,"throw",t)}u(void 0)})}}System.register(["./index-legacy93.js?v=1765440387","./utils-lib-legacy.js?v=1765440387","./column-legacy.js?v=1765440387","./base-lib-legacy.js?v=1765440387","./useMethods-legacy.js?v=1765440387","./__commonjsHelpers__-legacy.js?v=1765440387","./index-legacy94.js?v=1765440387"],function(n,r){"use strict";var o,a,u,c,l,s,f,m,p,v,d,y,h,b,g,w,j,k,_,O,x,S,T,A,C,P,R,B,G,q,I,L,N,W;return{setters:[function(t){o=t._},function(t){a=t.ay,u=t.a8,c=t.K,l=t.c6,s=t.l,f=t.L,m=t.o,p=t.c7,v=t.u,d=t.aM,y=t.a6,h=t.I,b=t.bA,g=t.e},function(t){w=t.c,j=t.a,k=t.u},function(t){_=t.k,O=t.r,x=t.c,S=t.w,T=t.p,A=t.aQ,C=t.a5,P=t.q,R=t.v,B=t.e,G=t.A,q=t.y,I=t.x},function(t){L=t.b,N=t.N,W=t.f},null,null],execute:function(){var E=a().refs,H=E.customLimit,F=E.isRefreshWarehouseList,J=_({isRefresh:!0}),M=O([]),U=function(){var t=i(e().m(function t(n,r,o,a){var u,c,l;return e().w(function(t){for(;;)switch(t.n){case 0:return u=a.label,c=a.value,l=function(){var t=i(e().m(function t(n,r){var o,i,a;return e().w(function(t){for(;;)switch(t.n){case 0:o=n.id,a=c,t.n="delete"===a?1:3;break;case 1:return i={id:o},t.n=2,p({data:JSON.stringify(i)});case 2:return t.a(2,t.v);case 3:return t.a(2)}},t)}));return function(n,e){return t.apply(this,arguments)}}(),t.n=1,n({title:"批量".concat(u,"仓库"),content:"批量".concat(u,"已选的仓库,是否继续操作!"),column:[{label:"仓库名",prop:"name"},w()],onConfirm:function(){var t=i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,r(l);case 1:return F.value=!0,t.a(2,!1)}},t)}));return function(){return t.apply(this,arguments)}}()});case 1:return t.a(2)}},t)}));return function(n,e,r,o){return t.apply(this,arguments)}}(),D=[{active:!0,label:"添加仓库",onClick:function(){s({component:function(){return f(function(){return r.import("./index-legacy218.js?v=1765440387")},void 0,r.meta.url)},title:"添加仓库",area:54,btn:"添加"})}},{type:"link",label:"需求反馈",class:"ml-[2rem]",onClick:function(){N()}}],K=function(t){s({component:function(){return f(function(){return r.import("./index-legacy218.js?v=1765440387")},void 0,r.meta.url)},title:"编辑仓库【".concat(t.name,"】"),area:54,btn:"编辑",compData:{row:t}})},Q=function(){var t=i(e().m(function t(n){var r;return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,m({title:"删除仓库【".concat(n.name,"】"),type:"calc",width:"35rem",content:"您真的要删除仓库【".concat(n.name,"】吗?")});case 1:r={id:n.id},c({request:p({data:JSON.stringify(r)}),message:!0,loading:"正在删除...",success:function(){F.value=!0}});case 2:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}(),$=u([{label:"删除项目",value:"delete",event:U}]),z=function(){var t=i(e().m(function t(n){var r;return e().w(function(t){for(;;)switch(t.n){case 0:if(F.value=!1,J.isRefresh){t.n=1;break}return t.a(2,{data:L({limit:n.limit,list:M.value,p:n.p})||[],total:M.value.length});case 1:return J.isRefresh=!1,t.n=2,c({request:l(),data:Array});case 2:return r=t.v,M.value=r,t.a(2,{data:L({limit:n.limit,list:M.value,p:n.p})||[],total:M.value.length})}},t)}));return function(n){return t.apply(this,arguments)}}(),V=function(t,n){setTimeout(function(){H.value.storage||function(t,n){setTimeout(function(){t.value>900?n.value.limit=20:n.value.limit=10},0)}(t,n)},0)},X={class:"relative"},Y={class:"flex items-center"},Z=x({__name:"index",setup:function(n){var r=a().refs.isRefreshWarehouseList,u=v().mainHeight,l=d({options:D}).BtOperation;S(function(){return r.value},function(t){t&&(J.isRefresh=!0,_())});var s,f=y({request:function(t){return z(t)},columns:[j(),{label:"URL",prop:"url",minWidth:100},{label:"用户",prop:"namespace",minWidth:100,isCustom:!0},{label:"仓库名",prop:"name",minWidth:100,isCustom:!0},W({table:"images",prop:"remark",edit:(s=i(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:c({request:b({data:JSON.stringify({id:n.id,remark:n.remark})}),message:!0});case 1:return t.a(2)}},t)})),function(t){return s.apply(this,arguments)}),noPlace:!0,noCustom:!0,width:200}),k([{onClick:K,isHide:function(t){return"docker.io"==t.url&&"docker官方库"==t.name&&""==t.username},title:"编辑"},{onClick:Q,isHide:function(t){return"docker.io"==t.url&&"docker官方库"==t.name&&""==t.username},title:"删除"}])],extension:[$]}),m=f.BtTable,p=f.BtPage,g=f.BtBatch,w=f.BtColumn,_=f.refresh,O=f.param;return T(i(e().m(function t(){return e().w(function(t){for(;;)switch(t.n){case 0:V(u,O);case 1:return t.a(2)}},t)}))),A(function(){h(["/btdocker/registry/registry_list"])}),C(function(){J.isRefresh=!0,M.value=[]}),function(n,e){var r=o;return P(),R("div",X,[B(r,null,{"header-left":G(function(){return[q("div",Y,[B(I(l))])]}),"header-right":G(function(){return[B(I(w))]}),content:G(function(){return[B(I(m),{key:"wareTable","max-height":I(u)-220},null,8,["max-height"])]}),"footer-left":G(function(){return[B(I(g))]}),"footer-right":G(function(){return[B(I(p))]}),popup:G(function(){return t(e[0]||(e[0]=[]))}),_:1})])}}});n("default",g(Z,[["__scopeId","data-v-7421d1e8"]]))}}})}();
Save File
Cancel